package com.fzkj.interface1;

public class MyParse implements Parse {

    private static Action DO_NOTHING = new Action() {
        @Override
        public void donSomething() {
            // TODO 不能为空
        }
    };

    @Override
    public Action findAction() {
        if ("xxx" == null){
            return DO_NOTHING;
        }
        return new Action() {
            @Override
            public void donSomething() {

            }
        };
    }
}
